package com.cloudconfigclient.controller;
 
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import lombok.extern.slf4j.Slf4j;
 
@RestController
@Slf4j
public class ConfigClientTwoController {
	
	
    @Value("${config.info}")
    private String configInfo;
 
    @GetMapping("/configInfo2")
    public String getConfigInfo2() {
    	log.info("cloud-config-client2获取的config信息:" + configInfo);
        return configInfo;
    }
    
}
